/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import React, { PureComponent } from "react";
import { connect } from "dva";
import PageHeaderLayout from "@/layouts/PageHeaderLayout";
import styles from "./style.less";
import Register from "@/pages/User/Register";

@connect(({ user }) => ({
  currentUser: user.currentUser
}))
export default class ModifyPassword extends PureComponent {
  render() {
    const {
      currentUser: { phone }
    } = this.props;
    return (
      <PageHeaderLayout title="安全设置">
        <div className={styles.main}>
          <Register phone={phone} {...this.props} />
        </div>
      </PageHeaderLayout>
    );
  }
}
